import unittest
import unittestreport

# if __name__ == '__main__':
#     # 创建测试套件
#     suit = unittest.TestSuite()
#     # 创建加载器
#     loader = unittest.TestLoader()
#     # 测试套件中添加测试用例类
#     suit.addTests([loader.loadTestsFromModule(test_demo1),
#                    loader.loadTestsFromModule(test_fixture)])
#     # 运行测试套件
#     unittest.TextTestRunner().run(suit)

# if __name__ == '__main__':
#     suit = unittest.TestLoader().discover('./cases', "test*.py")
#     runner = unittestreport.TestRunner(
#         suite=suit,
#         tester='坚果',
#         filename='坚果的测试报告.html',
#         report_dir=r'.\reports',
#         title="坚果的测试报告标题",
#         desc="坚果的测试报告描述",
#         templates=1,
#     )
#     runner.run(count=2, interval=2, thread_count=3)
